$(".user-input>input").focus(function(){
	$(".user-input-cuo").css("opacity","1")
	
})
$(".user-input>input").blur(function(){
	$(".user-input-cuo").css("opacity","0")
	
})
$(".user-input-cuo").click(function(){
	$(".user-input>input").val("")
	
	
})
$(".pass-input>input").focus(function(){
	$(".pass-input-cuo").css("opacity","1")
	
})
$(".pass-input>input").blur(function(){
	$(".pass-input-cuo").css("opacity","0")
	
})
$(".pass-input-cuo").click(function(){
	$(".pass-input>input").val("")
	
	
})


$(".letsgo").click(function(){
	var exg = /^1[0-9]{10}$/
	var esg =/^(\w){6,10}$/
	
	
	if(esg.test($("#vis2").val())==false){
		$(".tip").css("opacity",1)
		$(".errorFont").text("密码不能少于6位")
		$(".vis2-input-cuo").css("display","block")
		$(".vis2-input-cuo").css("background-position"," -20px -36px")
	}else{
		$(".vis2-input-cuo").css("background-position"," -20px 0")
		$(".vis2-input-cuo").css("display","block")
	}
	if(exg.test($("#vis1").val())==false){
		$(".tip").css("opacity",1)
		$(".errorFont").text("请正确输入手机号")
		$(".vis-input-cuo").css("display","block")
		$(".vis-input-cuo").css("background-position"," -20px -36px")
	}else{
		$(".vis-input-cuo").css("background-position"," -20px 0")
		$(".vis-input-cuo").css("display","block")
	}
})

$("#vis1").focus(function(){
		$(".tip").css("opacity",0)
		$(".vis-input-cuo").css("display","none")
	})
$("#vis2").focus(function(){
			$(".tip").css("opacity",0)
			$(".vis2-input-cuo").css("display","none")
		})
